<template>
  <alarmanalysis class="h-full"
                 :title="title"
                 :data="data"
                 :hightdata="234"
                 :dataList="dataList"
                 :legendList="legendList"/>
</template>
<script lang="ts" setup>
import alarmanalysis from "@/views/large-data-screen/component/public/alarm-analysis.vue"
import {screenworkorder} from '@/api/screen/largeData'

const title = ref('工单处理统计')
const data = ref(
  [
    {left: '10px', right: '10px', width: '95%', bottom: '20px'},
    {height2: '234px'}
  ]
)
const legendList = ref(['处理数量'])
const dataList = ref([])
onMounted(() => {
  getscreeninspect()
})
//获取巡检
const getscreeninspect = () => {
  screenworkorder({
    workOrderDT: 0,//工单处理日期类型 （0-全部 1 日 2周 3 月 4 年）
    workOrderTypeDT: 0 //工单类型统计日期类型  （0-全部   3 月 5 上月）

  }).then(res => {
    dataList.value = res.result.workOrderDeals


  })
}
</script>
<style></style>
